// pages/home/partner/is/isPartner.js
import {getStorageItem} from '../../../../utils/storage'


Component({
  /**
   * 组件的属性列表
   */
  properties: {
    info: {
      type: Object
    },
    month: {
      type: String
    },
    info1: {
      type: Object
    },
    info2: {
      type: Object
    },

  },

  /**
   * 组件的初始数据
   */
  data: {
    hhr_type: getStorageItem('hhr_type'),
    userAvatar: '',
    userName: '',
  },

  /**
   * 组件的方法列表
   */
  methods: {
    toYearIncome(){
      wx.navigateTo({
        url: '/pages/home/partner/year/year'
      });
    }
  },
  lifetimes: {
    attached: function(){
      this.setData({
        userAvatar: getStorageItem('headerImgPath'),
        userName: getStorageItem('user_name'),
      })
    }
  },
  pageLifetimes: {
    show: function() {
      

    },
  }
})
